﻿<Window x:Class="CECB.DashSlideSettings_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="DashSlideSettings_Window"            xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
       
        Height="650" Width="1200" 
           
        WindowStartupLocation="Manual" 
        Left="60" Top="100"
          Background="#AA000000" AllowsTransparency="True" WindowStyle="None" WindowState="Maximized" >
    <Window.Resources>
        <Storyboard x:Key="Slidetoright">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="rectangle">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.001"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="1.157">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-40"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="rectangle">
                <EasingDoubleKeyFrame KeyTime="0" Value="502.312"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="76.874">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-40"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rectangle">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="0.8"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.StrokeThickness)" Storyboard.TargetName="rectangle">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

        <Storyboard x:Key="showMe" >
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:3" From="0" To="1"/>
        </Storyboard>

        <Storyboard x:Key="drop">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="groupBox">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.02"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1.194">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-3"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="groupBox">
                <EasingDoubleKeyFrame KeyTime="0" Value="-120"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="23.75">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-3"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

        <Storyboard x:Key="drop1">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="groupBoxSearchTeam">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.02"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1.194">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-3"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="groupBoxSearchTeam">
                <EasingDoubleKeyFrame KeyTime="0" Value="-120"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="23.75">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-3"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

    </Window.Resources>
    <Window.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource Slidetoright}"/>
        </EventTrigger>
    </Window.Triggers>

    <Grid x:Name="LayoutRoot" Width="1100" Height="600">




        <Rectangle x:Name="rectangle" Margin="0,21.5,138,8" Stroke="Black" RadiusY="18.5" RadiusX="18.5" RenderTransformOrigin="0.5,0.5">
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Rectangle.RenderTransform>
            <Rectangle.Fill>
                <ImageBrush ImageSource="images/roundbg.png"/>
            </Rectangle.Fill>
        </Rectangle>
        <Grid Margin="30,0,0,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="100"/>
                <RowDefinition Height="60"/>
                <RowDefinition Height="400"/>
                <RowDefinition Height="1*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="300"></ColumnDefinition>
                <ColumnDefinition Width="25"></ColumnDefinition>
                <ColumnDefinition Width="280"></ColumnDefinition>
                <ColumnDefinition Width="25"></ColumnDefinition>
                <ColumnDefinition Width="10*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Button BorderBrush="{x:Null}" Grid.Column="4" Background="Transparent" Click="CloseButton_Click" Cursor="Hand" Name="CloseButton" Margin="350,50,50,14"  >
                <Grid  >
                    <Image Height="32" Margin="2" Source="/CECB;component/images/closeblack.png" Width="32" />
                </Grid>
            </Button>
            <TextBlock Height="55" HorizontalAlignment="Left" Margin="99,58,0,0" Name="textBlock1" Text="Search..." VerticalAlignment="Top" FontSize="35" Grid.RowSpan="2" Foreground="White" FontStyle="Italic" FontWeight="ExtraBold" />

            <Canvas Grid.Column="0" Grid.Row="1" Height="600" HorizontalAlignment="Center" Margin="0,0,0,0" Name="canvas1" VerticalAlignment="Top" Width="300" >
                <WrapPanel Orientation="Vertical">

                    <StackPanel></StackPanel>
                </WrapPanel>
                <TextBlock Height="23" Name="textBlock3" Text="Change Password" Foreground="White" FontSize="15" Width="155" Canvas.Left="19" Canvas.Top="20" />
            </Canvas>
            <Canvas Grid.Column="2" Grid.Row="1" Height="600" HorizontalAlignment="Center" Margin="0,0,0,0" Name="canvas2" VerticalAlignment="Top" Width="300" >


                <WrapPanel Orientation="Vertical">

                    <StackPanel Orientation="Vertical"> </StackPanel>


                </WrapPanel>
                <TextBlock Canvas.Left="10" Canvas.Top="20" FontSize="15" Foreground="White" Height="23" Name="textBlock2" Text="Gmail Account" Width="155" />
            </Canvas>
            <Rectangle Grid.Column="3" Grid.Row="1" Grid.RowSpan="3" Height="430"   Margin="0,20,0,0" Name="rectangle3" Stroke="White" VerticalAlignment="Top" Width="1" Fill="White" StrokeThickness="1" />

            <Rectangle Grid.Column="1" Grid.Row="1" Grid.RowSpan="3" Height="430"   Margin="10,20,0,0" Name="rectangle1" Stroke="White" VerticalAlignment="Top" Width="1" Fill="White" StrokeThickness="1" />
            <Rectangle Grid.Row="0" Grid.ColumnSpan="5" Height="1"   Margin="50,98,190,0"  Name="rectangle2" Stroke="White" VerticalAlignment="Top" Fill="White" StrokeThickness="1" />


            <WrapPanel Grid.Row="1" Name="xx" Margin="10,50,0,0" Grid.RowSpan="2">
                <StackPanel Height="263" Name="stackPanel1" Width="285">
                    <TextBox Text="Current username" Height="34" Name="textBox1" Width="277" GotFocus="textBox1_GotFocus" />
                    <TextBox Text="Current password" Height="34" Name="textBox2" Width="277" GotFocus="textBox2_GotFocus" />
                    <TextBox Text="New password"  Height="34" Name="textBox3" Width="277" GotFocus="textBox3_GotFocus" />
                    <TextBox Text="Confirm password" Height="34" Name="textBox4" Width="277" GotFocus="textBox4_GotFocus" />
                    <Button Content="Save" HorizontalAlignment="Right" Margin="0,0,0,0" Height="31" Name="Save" Width="127" Click="button1_Click" />
                </StackPanel>
            </WrapPanel>

            <WrapPanel Grid.Column="2" Grid.Row="1" Margin="0,42,0,0" Orientation="Vertical" Grid.RowSpan="2">
                <TextBox Height="32" Name="textBox5" Text="Email User Name" Width="277" GotFocus="textBox5_GotFocus" />
                <PasswordBox Height="32" Name="textBox6" Password="aaaaaaa" Width="277" GotFocus="textBox6_GotFocus" />
                <Button Content="Save" Height="35" Name="SaveEmail" Width="116" HorizontalAlignment="Right" Click="SaveEmail_Click" />
            </WrapPanel>
        </Grid>





    </Grid>
</Window>